package com.hongpu.enums;

/**
 * @author 张玉胜
 * @since 2025年01月03日
 */
public enum ResultStatusEnum {
    SUCCESS("2000","操作成功!"),
    SUCCESS_EXPORT("2000","数据导出成功!"),
    FAIL("5000","操作失败!"),
    FAIL_DELETE_PARAM("5000","删除未操作，请检查输入的参数"),
    FAIL_DELETE_USED("5000","该条数据已经被引用，请先删除关联数据"),
    FAIL_UPDATE("5000","该条数据不允许修改开票状态"),
    PARSE_FAIL("6000","JSON字符串转ResultDto失败!"),
    TOKEN_VERIFICATION_SUCCESS("2000","token验证成功"),
    TOKEN_VERIFICATION_FAIL("5000","用户权限认证没有通过，请重新登录"),
    WARNING("4000","当前操作不允许!"),
    ;

    private String msgCode;
    private String message;

    public String getMsgCode() {
        return this.msgCode;
    }

    public String getMessage() {
        return this.message;
    }

    ResultStatusEnum(final String msgCode, final String message) {
        this.msgCode = msgCode;
        this.message = message;
    }
}
